import java.util.Scanner;

/**
 * @author: gao
 * @create-date: 2025/5/21 15:55
 */

public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        int type;
        ComputeWeight[] goods = new ComputeWeight[n]; // n appliances
        for (int i = 0; i < goods.length; i++) {
            type = input.nextInt(); // Read appliance type
            if (type == 1)
                goods[i] = new Television();
            else if (type == 2)
                goods[i] = new AirConditioner();
            else if (type == 3)
                goods[i] = new WashMachine();
        }
        Truck truck = new Truck(goods);
        System.out.printf("Truck's total load: %8.2f kg", truck.getTotalWeight());
    }
}

interface ComputeWeight {
    double computeWeight();
}

class Television implements ComputeWeight {

    @Override
    public double computeWeight() {
        return 16.6;
    }
}

class AirConditioner implements ComputeWeight {

    @Override
    public double computeWeight() {
        return 40.0;
    }
}

class WashMachine implements ComputeWeight {

    @Override
    public double computeWeight() {
        return 60.0;
    }
}

class Truck {
    private ComputeWeight[] goods;

    public Truck(ComputeWeight[] goods) {
        this.goods = goods;
    }

    public double getTotalWeight() {
        double totalWeight = 0.0;
        for (int i = 0; i < goods.length; i++) {
            totalWeight += goods[i].computeWeight();
        }
        return totalWeight;
    }
}